package designpattern.flyweight.news;

import java.time.LocalDateTime;

public class NewsImpl implements INews{
    @Override
    public R getNewsById(String id) {
        return new R(200,"获取成功",query(id));
    }

    public NewsInfo query(String id){
        return new NewsInfo("1447872663777","我和木星的对话","我和木星的对话","steak", LocalDateTime.now());
    }
}
